<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }

    .box {
        width: 900px;
        height: 500px;
        background-color: antiquewhite;
        margin: auto;
        position: relative;
    }

    ul li {
        list-style: none;
        width: 300px;
        height: 60px;
        float: left;
        text-align: center;
        line-height: 60px;
        background-color: aqua;
    }

    ul li:hover {
        background: red;
    }

    /* .left,.conter,.rigth{
        width: 300px;
        height: 60px;
        float: left;
        text-align: center;
        line-height: 60px;
        background-color: aqua;
    } */
    .left,
    .conter,
    .rigth {
        width: 900px;
        height: 440px;
        text-align: center;
        line-height: 440px;
        background-color: rgb(166, 255, 0);
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        margin: auto;
    }

    /* .conter{
        width: 900px;
        height: 440px;
        text-align: center;
        line-height: 440px;
        background-color: rgb(166, 255, 0);
        display: none;
    }
    .rigth{
        width: 900px;
        height: 440px;
        text-align: center;
        line-height: 440px;
        background-color: rgb(166, 255, 0);
        display: none;
    } */
</style>

<body>
    <div class="box">
        <ul>
            <li>标题1</li>
            <li>标题2</li>
            <li>标题3</li>
        </ul>
        <!-- <div class="left">标题1</div>
        <div class="conter">标题2</div>
        <div class="rigth">标题3</div> -->
        <div class="left">内容1</div>
        <div class="conter">内容2</div>
        <div class="rigth">内容3</div>
    </div>
</body>
<script>onmouseup
    $(function () {
        $('li:first').mouseover(function () {
            $('li:eq(0)').show()
            $('.left').css('display', 'block')
            $('.conter').css('display', 'none')
            $('.rigth').css('display', 'none')

        })

        $('li:eq(1)').mouseover(function () {
            $('li:eq(1)').show()
            $('.conter').css('display', 'block')
            $('.left').css('display', 'none')
            $('.rigth').css('display', 'none')
        })
        $('li:last').mouseover(function () {
            $('li:eq(2)').show()
            $('.rigth').css('display', 'block')
            $('.left').css('display', 'none')
            $('.conter').css('display', 'none')
        })

    })
</script>

</html>